package com.gdou.teaching.mapper;

import com.gdou.teaching.dataobject.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author MelancholyCat
 * @date Created in 10:06 2019-08-15
 * @description
 */
@Mapper
@Repository
public interface UserInfoMapper {
    int addUserInfo(UserInfo userInfo);
    int deleteUserInfoByUserInfoId(Integer userInfoId);
    int updateUserInfo(UserInfo userInfo);
    UserInfo selectUserInfoByUserInfoId(Integer userInfoId);
    UserInfo selectUserInfoByUserId(Integer userId);
    List<UserInfo> selectInfoByUserInfo(UserInfo userInfo);
}
